package com.chen.common.satoken.component;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: ChenJinLong
 * @DATE: 2025/1/10
 **/
@Data
@Component
public class SaApiName {

    @Value("${server.servlet.context-path:}")
    private String contextPath;

    /** SSO-Client端：登录地址 */
    public String ssoLogin(){
        return "/sso/client/login";
    };

    /** SSO-Client端：单点注销地址 */
    public String ssoLogout(){
        return "/sso/client/logout";
    }

    /** SSO-Client端：单点注销的回调 */
    public String ssoLogoutCall(){
        return "/sso/client/logoutCall";
    }

}
